* {
  margin: 0;
  padding: 0;
  /* 清除下划线 */
  text-decoration: none;
  box-sizing: border-box;
  /* 清除li元素前面的项目符号 */
  list-style: none;
  /* 不可复制 */
  user-select: none;
}
.main {
  height: 100%;
}
/* 顶部导航条 */
.top_bar {
  position: fixed;
  top: 0;
  left: 180px;
  width: calc(100vw - 180px);
  height: 80px;
  /* background-color: #3c8dbc; */
  background-color: #fff;
  border-bottom: 3px solid #e7eaec;
  z-index: 2;
  /* 不可复制 */
  user-select: none;
}
.top_bar .user {
  position: absolute;
  height: 100%;
  right: 0;
  width: 300px;
}

.top_bar .user > div {
  position: absolute;
  font-size: 20px;
  height: 100%;
  right: 30px;
  top: 25px;
}
.top_bar .user > div span {
  cursor: pointer;
}
.top_bar .user > div i {
  cursor: pointer;
}
.top_bar .user > div:hover ul {
  display: block;
}
.top_bar .user > div ul {
  position: absolute;
  display: none;
  width: 120px;
  height: 100px;
  top: 50px;
  right: 20px;
  background-color: white;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 3px;
}
/* 设置向上小三角 */
.top_bar .user > div ul::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-top: none;
  border-bottom-color: white;
  left: 45px;
  bottom: 100px;
}
.top_bar .user > div ul > li {
  width: 100%;
  margin: 15px 20px;
  color: rgb(0, 0, 0);
}
.top_bar .user > div ul > li a {
  color: black;
  font-size: 18px;
}
.top_bar .user > div ul > li a:hover {
  color: gray;
}
/* 侧面菜单栏 */
.left_bar {
  position: fixed;
  width: 180px;
  height: 100vh;
  top: 0;
  left: 0;
  bottom: 0;
  overflow: hidden;
  background-color: #304156;
  /* 不可复制 */
  user-select: none;
}
.left_bar .log {
  width: 100%;
  height: 80px;
  background-color: #304156;
}
.left_bar .log > img {
  position: absolute;
  left: 10px;
  width: 50px;
  top: 15px;
}
.left_bar .log > span {
  position: absolute;
  right: 30px;
  color: white;
  top: 28px;
  font-size: 20px;
}
.left_bar .menu {
  position: absolute;
  width: auto;
  height: 70%;
  /* margin-top: 80px; */
  top: 80px;
  overflow-y: auto;
  overflow-x: hidden;
}
/* 设置有滚动但不出现滚动条 */
.left_bar .menu::-webkit-scrollbar {
  width: 0px;
}
.left_bar .menu::-o-scrollbar {
  width: 0px;
}
.left_bar .menu::-moz-scrollbar {
  width: 0px;
}
.left_bar .accordion {
  /* 溢出隐藏 */
  overflow: hidden;
  width: 180px;
}
.left_bar .accordion a {
  color: #bfbfbf;
}
.left_bar .accordion > li {
  width: 100%;
}
.left_bar .accordion > li input {
  display: none;
}
.left_bar .accordion > li label {
  position: relative;
  /* 将行内元素转换成块元素 */
  display: block;
  width: 100%;
  padding: 20px 50px;
  color: #bfbfbf;
  background-color: #304156;
  /* 鼠标移入边小手 */
  cursor: pointer;
}
.left_bar .accordion > li label #menu_log {
  position: absolute;
  font-size: 24px;
  top: calc(50% - 12px);
  left: 20px;
}
.left_bar .accordion > li > label #direction {
  position: absolute;
  font-size: 24px;
  /* 自动计算元素距离顶部值（垂直居中） */
  top: calc(50% - 12px);
  right: 20px;
  transition: all 0.5s;
}
.left_bar .accordion > li label:hover {
  background-color: #263445;
}

.left_bar .accordion > li ol {
  width: 100%;
  background-color: #1f2d3d;
}
.left_bar .accordion > li ol li {
  position: relative;
  width: 100%;
  height: 0;
  text-align: center;
  line-height: 50px;

  padding-left: 20px;
  padding-right: 20px;
  cursor: pointer;
  /* 延迟过度动画 */
  transition: all 0.5s;
}
.left_bar .accordion > li ol li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 5px;
  height: 40px;
  background-color: #5fb878;
  transform: scaleY(0);
  /* 加过度 */
  transition: all 0.3s;
}
.left_bar .accordion > li ol li:hover::before {
  transform: scaleY(1);
}
.left_bar .accordion > li input:checked ~ label #direction {
  transform: rotate(180deg);
}
.left_bar .accordion > li input:checked ~ ol li {
  height: 50px;
}

/* 右边内容展示栏 */
.right_main {
  position: absolute;
  background-color: #EDEFF1;
  width: calc(100vw - 180px);
  left: 180px;
  top: 80px;
  bottom: 40px;
  overflow-y: auto;
  padding: 20px 40px;
}
.right_main .test {
  position: relative;
  
}
/* 页脚 */
.footer {
  position: fixed;
  width: calc(100vw - 180px);
  height: 40px;
  line-height: 40px;
  bottom: 0;
  left: 180px;
  background-color: #fff;
  border-top: 2px solid #e7eaec;
  /* 不可复制 */
  user-select: none;
}
.footer > div > a {
  position: absolute;
  font-size: 16px;
  width: 300px;
  left: calc(50% - 150px);
  color: #7a8b9a;
  display: block;
  text-align: center;
}
